#ifndef CFGENGINE_H
#define CFGENGINE_H
#include <libconfig.h>
#include <string.h>

#define CONFIG_FILENAME "/var/cilantro/configs/cilantro.cfg"


typedef struct cilantro_config_t {
	
	config_t * cfg;
	char filename[128];
	char db_name[128];
	char version[64];
	

} cilantro_config;


int cilantro_config_init( struct cilantro_config_t ** p );
int cilantro_config_read( struct cilantro_config_t ** p );
int cilantro_config_write( struct cilantro_config_t ** p );
int cilantro_config_destroy ( struct cilantro_config_t **p);
#endif
